Skip to content

Playwright: fix error in pytest_runtest_makereport hook #6604

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

emilghittasv
Copy link
Collaborator

I've accidentally removed the call.when == "call" check from the pytest_runtest_makereport hook which was the cause of some recent playwright test failures.

We should ensure that the report retrieval, context closure & attaching the screencast of the failure to the allure report happens only during the "call" phase (After the test execution phase & before the teardown phase).

@emilghittasv emilghittasv requested a review from escattone March 31, 2025 20:35
@escattone escattone merged commit 7b07608 into mozilla:main Mar 31, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants